package com.edu.test;

import com.edu.service.BookService;
import com.edu.service.impl.BookServiceImpl;
import com.edu.service.impl.BookServiceProxy;

/**
 * @Author:mx
 * @Date:2025/11/10-15:20:01
 */
public class MyTest03 {

    public static void main(String[] args) {
        int num = test01();
        System.out.println(num); //
    }

    public static int test01(){
        int a = 0;
        try{
            a = 10;
            System.out.println(a/0);
            return a;//把a的值 记住
        }catch(Exception e){
            return a++;
        }finally{
            a++;
            System.out.println("结果是:"+a);
//            return a; //只要finally 有return 其他的return全部作废
        }

    }
}
